package cc.zy.base.hr.entity;

import cc.zy.base.common.converter.TimeConverter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 培训计划时间段表（只做月段）
 * @author yan
 * @time 2022/03/08 20:42:04
 */
@Data
@TableName("t_hr_trainning_plan_execute_schedule")
@Excel("培训计划执行管理表")
public class ExecuteSchedule {

    @ExcelField(value = "序号")
    @TableId(value = "ID",type = IdType.AUTO)
    private int id;

    /**
     * 草稿培训计划表--外键
     */
    @TableId(value = "TRAINNING_PLAN_EXECUTE_ID")
    private int trainningPlanExecuteId;

    /**
     * 季度、月、周、日
     */
    @TableField(value = "PERIOD_TYPE")
    private int periodType;

    /**
     * 字典表：季度、月、周、日
     */
    @ExcelField(value = "计划周期")
    @TableField(exist = false)
    private String periodTypeName;

    @ExcelField(value = "执行日期", writeConverter = TimeConverter.class)
    @TableField(value = "PLAN_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date planDate;

    /**
     *
     */
    @ExcelField(value = "培训名称")
    @TableField(exist = false)
    private String trainningTitle;

    /**
     *
     */
    @ExcelField(value = "培训级别")
    @TableField(exist = false)
    private String trainningLevel;
    /**
     *
     */
    @ExcelField(value = "培训类型")
    @TableField(exist = false)
    private String trainningType;
    /**
     *
     */
    @ExcelField(value = "内训/外训")
    @TableField(exist = false)
    private String innerOrOutter;
    /**
     *
     */
    @ExcelField(value = "课程名称")
    @TableField(exist = false)
    private String courseName;
    /**
     *
     */
    @TableField(exist = false)
    private String examineId;
    /**
     *
     */
    @ExcelField(value = "实际开始时间", writeConverter = TimeConverter.class)
    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "CTT")
    private Date actualBeginTime;
    /**
     *
     */
    @ExcelField(value = "实际结束时间", writeConverter = TimeConverter.class)
    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "CTT")
    private Date actualEndTime;

    /**
     *
     */
    @ExcelField(value = "参训人员")
    @TableField(exist = false)
    private String participantsTitle;

    /**
     *
     */
    @ExcelField(value = "考评方式")
    @TableField(exist = false)
    private String chechStyleExamine;

    /**
     *
     */
    @TableField(exist = false)
    private String createUserName;

    /**
     *
     */
    @ExcelField(value = "最后修改人")
    @TableField(exist = false)
    private String lastModifyUserName;

    /**
     *
     */
//    @ExcelField(value = "备注")
    @TableField(exist = false)
    private String remark;

    /**
     *
     */
    @ExcelField(value = "考评名称")
    @TableField(exist = false)
    private String examineTitle;

    /**
     *
     */
    @ExcelField(value = "教师简介")
    @TableField(exist = false)
    private String teacherInfo;
    /**
     *
     */
    @TableField(exist = false)
    private byte cancel;
    /**
     *
     */
    @TableField(exist = false)
    private byte finish;


}
